﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Medianamik.Core.DAL.SQL
{
    public class Column
    {
        public Table Table { get; private set; }
        public string Name { get;private set; }
        public string NameWithAlias
        {
            get
            {
                return " "+Table.Alias + ".[" + Name + "] "; 
            }
        }

        public Column(Table pTable, string pName)
        {
            Table = pTable;
            Name = pName;
        }
    }
}
